// components/menu-area/menu-area.js
const app = getApp();

Component({

  properties: {
    title: {
      type: String,
      value: "默认歌单"
    },
    menuList: {
      type: Array,
      value: []
    }
  },

  data: {
    screenWidth: 375
  },

  // 生命周期
  lifetimes: {
    // 组件实例进入页面节点树时执行
    attached() { 
      this.setData({ screenWidth: app.globalData.screenWidth })
    }
  },

  methods: {
    onMenuMoreClick() {
      wx.navigateTo({
        url: "/pages/detail-menu/detail-menu",
      });
    },
  },
})